package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class EmpTThM implements java.io.Serializable {
	/**
	 * 供应商编码
	 **/
	String vendorCode;
	EmpTVendor vendor;
	/**
	 * pk 退货单号
	 **/
	String thCode;
	/**
	 * 仓库编码：4位机构号 + 2位机构内编码
	 **/
	String whCode;
	/**
	 * 业务员ID
	 **/
	Long saleId;
	/**
	 * 审核时间
	 **/
	Date auditDate;
	/**
	 * 备注
	 **/
	String note;
	/**
	 * 状态
	 **/
	String status;
	/**
	 * 审核原因
	 **/
	String auditNote;
	/**
	 * 客户ID
	 **/
	Long custId;
	/**
	 * 审核人ID
	 **/
	VUser auditor;
	/**
	 * 创建人
	 **/
	private VUser createUser;
	/**
	 * 创建时间
	 **/
	Date createDate;
	/**
	 * 修改人
	 **/
	private VUser modiUser;
	/**
	 * 修改时间
	 **/
	Date modiDate;
	/**
	 * 所属机构ID
	 **/
	Long deptId;
	private VDepartment dept;

	public EmpTThM() {
	}

	public String getVendorCode() {
		return this.vendorCode;
	}

	public void setVendorCode(String vendorCode) {
		this.vendorCode = vendorCode;
	}

	public String getThCode() {
		return this.thCode;
	}

	public void setThCode(String thCode) {
		this.thCode = thCode;
	}

	public String getWhCode() {
		return this.whCode;
	}

	public void setWhCode(String whCode) {
		this.whCode = whCode;
	}

	public Long getSaleId() {
		return this.saleId;
	}

	public void setSaleId(Long saleId) {
		this.saleId = saleId;
	}

	public Date getAuditDate() {
		return this.auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAuditNote() {
		return this.auditNote;
	}

	public void setAuditNote(String auditNote) {
		this.auditNote = auditNote;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getCustId() {
		return this.custId;
	}

	public void setCustId(Long custId) {
		this.custId = custId;
	}


	public Date getModiDate() {
		return this.modiDate;
	}

	public void setModiDate(Date modiDate) {
		this.modiDate = modiDate;
	}

	public EmpTVendor getVendor() {
		return vendor;
	}

	public void setVendor(EmpTVendor vendor) {
		this.vendor = vendor;
	}

	public VUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(VUser createUser) {
		this.createUser = createUser;
	}

	public VUser getModiUser() {
		return modiUser;
	}

	public void setModiUser(VUser modiUser) {
		this.modiUser = modiUser;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public VDepartment getDept() {
		return dept;
	}

	public void setDept(VDepartment dept) {
		this.dept = dept;
	}

	public VUser getAuditor() {
		return auditor;
	}

	public void setAuditor(VUser auditor) {
		this.auditor = auditor;
	}

	public String getAuditDateStr() {
		return DateUtil.dateToString(this.auditDate, DateUtil.patternE);
	}

	public String getCreateDateStr() {
		return DateUtil.dateToString(this.createDate, DateUtil.patternE);
	}

	public String getModiDateStr() {
		return DateUtil.dateToString(this.modiDate, DateUtil.patternE);
	}

	public String getStatusStr(){
		return FormateUtil.getInstance().getNameByCode("p_th_status", this.status);
	}		
}